
	<!--{hook header_nav_start.htm}-->
	
	<nav class="navbar bg-faded navbar-full navbar-fixed-top" id="header">
	<!-- <nav class="navbar  container navbar-full navbar-fixed-top" id="header"> -->
	
		<!-- PC 导航 -->
		<div class="collapse navbar-toggleable-md container nav-pc">
			<div class="row">
				<!-- 左侧：版块区域 -->
				<div class="col-md-8">
				
				   
				   <ul class="nav navbar-nav" id="nav_pc">
					
						<!--{hook header_nav_pc_start.htm}-->

						<!-- LOGO -->
						<li class="nav-item first"><a class="navbar-brand" href="/"><?php echo $huux_style_one['hso_logo']; ?></a></li>
						
						<!--{hook header_nav_logo_after.htm}-->
						
						<!-- 前台首页 -->
						<?php 
						if(isset($huux_style_one['hso_site_headernav']) && ($huux_style_one['hso_site_headernav']!=5 && $huux_style_one['hso_site_headernav']!=6)){ ?>
						<li class="nav-item home" fid="0"><a class="nav-link" href="."><i class="icon-home m-r-xs"></i><?php echo lang('index_page');?></a></li>
						<?php } ?>
						
						
						<!--{hook header_nav_home_link_after.htm}-->
						
						<!-- 版块 -->
						<?php 
						if(isset($huux_style_one['hso_site_headernav']) && ($huux_style_one['hso_site_headernav']==3 || $huux_style_one['hso_site_headernav']==4)){
						foreach($forumlist_show as $_forum) { ?>
						
						<!--{hook header_nav_forumlist_loop_start.htm}-->
						<li class="nav-item" fid="<?php echo $_forum['fid'];?>">
							<a class="nav-link" href="<?php echo url("forum-$_forum[fid]");?>"><?php echo $_forum['name'];?></a>
						</li>
						<!--{hook header_nav_forumlist_loop_end.htm}-->
						
						<?php }} ?>
						
						
						<!--{hook header_nav_pc_end.htm}-->
						
					</ul>
					 
				</div>
				<!-- 右侧：用户区域-->
				<div class="col-md-4">
					<ul class="nav navbar-nav pull-right">

					    <!-- 搜索 -->
						<li class="nav-item nav-search hidden-xs hidden-sm">
						<form action="?search.htm" id="search_form2">
						<div class="input-group">
							<input type="text" class="form-control" placeholder="关键词" name="keyword">
							<span class="input-group-btn">
								<button class="btn btn-secondary" type="submit"><i class="icon-search"></i></button>
							</span>
						</div>
						</form>
					   </li>
					
						<!--{hook header_nav_pc_user_start.htm}-->
						
						<!-- 游客 -->
						<?php if(empty($uid)) { ?>
						
						<li class="nav-item"><a class="nav-link" href="<?php echo url('user-login');?>"><?php echo lang('login');?></a></li>
						<li class="nav-item"><a class="nav-link" href="<?php echo url('user-create');?>"><?php echo lang('register');?></a></li>
						
						<!-- 登陆用户 -->
						<?php } else { 
						xn_strlen($user['username']) > 7 && $user['username'] = xn_substr($user['username'], 0, 7).'...';
						?>
						<li class="nav-item one_dropdown">
							<div class="dropdown">
									<a class="nav-link dropdown-toggle" data-hover="dropdown" data-toggle="dropdown" id="dropdownMenu2" aria-haspopup="true" aria-expanded="false" href="#"><img class="avatar-xs m-r-xs" src="<?php echo $user['avatar_url'];?>"><?php echo $user['username'];?></a>
									<ul class="dropdown-menu  dropdown-menu-right" aria-labelledby="dropdownMenu2">
								    <!-- 管理员 -->
									<?php if($gid == 1) { ?>
									<li class="dropdown-item"><a class="nav-link" href="admin/"><i class="icon-home m-r-xs"></i><?php echo lang('admin_page');?></a></li>
									<div class="dropdown-divider"></div>
									<?php } ?>
									<li class="dropdown-item"><a class="nav-link" href="<?php echo url('my');?>"><i class="icon-user m-r-xs"></i>个人中心</a></li>
									<li class="dropdown-item"><a class="nav-link" href="<?php echo url('my-avatar'); ?>"><i class="icon-smile-o m-r-xs"></i><?php echo lang('modify_avatar'); ?></a></li>
									<li class="dropdown-item"><a class="nav-link" href="<?php echo url('my-password');?>"><i class="icon-lock m-r-xs"></i> <?php echo lang('modify_password'); ?></a></li>
									<li class="dropdown-item"><a class="nav-link" href="<?php echo url('my-thread'); ?>"><i class="icon-comment m-r-xs"></i><?php echo lang('my_post'); ?></a></li>
									<div class="dropdown-divider"></div>
									<li class="dropdown-item"><a class="nav-link" href="<?php echo url('user-logout');?>"><i class="icon-sign-out m-r-xs"></i><?php echo lang('logout');?></a></li>
									</ul>
							</div>
						</li>
						
						<?php } ?> 


						
						<!--{hook header_nav_pc_user_end.htm}-->
					</ul>
				</div>
			</div>
		</div>
		
		
		
		
		
		
		
		
		<!-- 手机导航 -->

		<table width="100%" class="hidden-lg-up navbar-nav nav-mobile">
			<tr>
				<td width="100">
					<?php if($route == 'index' || $route == 'forum') { ?>
					<a class="icon-navicon navbar-toggler collapsed" role="button" data-toggle="collapse" data-target="#mobile_collapsing_bavbar"></a>
					 <?php } else { ?>
					 <div class="nav-item">
						 <a class="nav-link icon-chevron-left xn-back" href="javascript:history.back();" aria-label="<?php echo lang('back');?>"></a>
					 </div>
					 <?php } ?>
			
				</td>
				<td>
					<a class="nav-link text-center" href="<?php echo $header['mobile_link'];?>">
					<?php if($header['mobile_title']) { ?>
						<?php echo $header['mobile_title'];?>
					<?php } else { ?>
						<?php echo $huux_style_one['hso_logo']; ?>
						<!-- <img src="<?php echo $conf['view_url'];?>img/logo.png" class="logo-sm center-block"> -->
					<?php } ?>
					</a>

				</td>
				<td width="100" align="right">
					<?php if(empty($uid)) { ?>
						<a class="nav-link m-r-xs" href="<?php echo url('user-login');?>" aria-label="<?php echo lang('login');?>"> <i class="icon-user  icon-2x"></i></a>
					<?php } else { ?>
						
					<?php if($route != 'thread') { ?>
						<a class="nav-link icon-edit icon" href="<?php echo url("thread-create-$fid");?>" aria-label="<?php echo lang('thread_create');?>"></a>
					<?php } else { ?>
						<a class="nav-link icon-reply icon" href="<?php echo url("post-create-$tid");?>" aria-label="<?php echo lang('post_create_new');?>"></a>
					<?php } ?>
						
					<?php } ?>

				</td>
			</tr>
		</table>
	
		
		<!-- 手机导航：下拉菜单 mobile navigation drop menu -->
		<div class="collapse" id="mobile_collapsing_bavbar" style="overflow-y: auto;">
		<div class="p-a-xs">
			<form action="?search.htm" id="search_form2017">
			<div class="input-group">
				<input type="text" class="form-control" placeholder="关键词" name="keyword">
				<span class="input-group-btn">
					<button class="btn btn-secondary" type="submit"><i class="icon-search"></i></button>
				</span>
			</div>
			</form>
		</div>
			<div class="p-a-xs">
				<ul class="nav navbar-nav" id="nav_mobile">
				    
					<li class="nav-item">
						<a class="nav-link" href="./"><i class="icon-home"></i> <?php echo lang('index_page');?></a>
					</li>
					
					
					<!--{hook header_nav_mobile_forum_before.htm}-->
					<?php 
						if(isset($huux_style_one['hso_site_headernav']) && ($huux_style_one['hso_site_headernav']==1 || $huux_style_one['hso_site_headernav']==3 || $huux_style_one['hso_site_headernav']==5)){ ?>
					<?php foreach($forumlist_show as $_forum) { ?>
					<li class="nav-item" fid="<?php echo $_forum['fid'];?>">
						<a class="nav-link " href="<?php echo url("forum-$_forum[fid]");?>"><i class="icon-minus-square-o hidden-lg-up"></i><?php echo $_forum['name'];?></a>
					</li>
					<?php }} ?>
					
					<!--{hook header_nav_mobile_forum_after.htm}-->
					
					<!-- 个人资料 / profile -->
					<?php if($uid) { ?>
					<li class="nav-item">
						<a class="nav-link" href="<?php echo url('my');?>"><i class="icon-user"></i> <?php echo lang('user_profile');?></a>
					</li>
					<?php } ?>
					
					<!-- 后台 / background -->
					<?php if($gid == 1) { ?>
					<li class="nav-item">
						<a class="nav-link" href="admin/"><i class="icon-home"></i> <?php echo lang('admin_page');?></a>
					</li>
					<?php } ?>
					
					<!--{hook header_nav_mobile_logout_before.htm}-->
					
					<!-- 退出 / logout-->
					<?php if($uid) { ?>
					<li class="nav-item">
						<a class="nav-link" href="<?php echo url('user-logout');?>"><i class="icon-off"></i> <?php echo lang('logout');?></a>
					</li>
					<?php } ?>
					
					<!--{hook header_nav_mobile_logout_after.htm}-->
				</ul>
			</div>
		</div>
		
	</nav>
	
	<!--{hook header_nav_footer.htm}-->